package com.foo;

import org.sonar.api.web.AbstractRubyTemplate;
import org.sonar.api.web.RubyRailsWidget;
import org.sonar.api.web.WidgetCategory;
import org.sonar.api.web.WidgetProperties;
import org.sonar.api.web.WidgetProperty;
import org.sonar.api.web.WidgetPropertyType;

@WidgetCategory("Labs")
@WidgetProperties({ @WidgetProperty(key = "max", type = WidgetPropertyType.INTEGER, defaultValue = "80") })
public class MyWidget extends AbstractRubyTemplate implements RubyRailsWidget {
    public String getId() {
        return "my_widget";
    }

    public String getTitle() {
        return "My Widget";
    }

    protected String getTemplatePath() {
        return "/com/foo/my_widget.html.erb";
    }

}
